package com.an.blog.admin.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.an.common.annotation.ExcelDictFormat;
import com.an.common.convert.ExcelDictConvert;
import lombok.Data;

import java.util.Date;


/**
 * 博客说说视图对象 blog_talk
 *
 * @author Ann
 * @date 2023-05-08
 */
@Data
@ExcelIgnoreUnannotated
public class BlogTalkVo {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long talkId;

    /**
     * 说说内容
     */
    @ExcelProperty(value = "说说内容")
    private String talkContent;

    /**
     * 说说图片
     */
    @ExcelProperty(value = "说说图片")
    private String talkImage;

    /**
     * 是否置顶（0否 1是）
     */
    @ExcelProperty(value = "是否置顶", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=否,1=是")
    private String isTop;

    /**
     * 状态（0正常 1禁用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=禁用")
    private String status;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "说说发布日期")
    private Date createTime;

    /**
     * 讨论图像url
     */
    @ExcelProperty(value = "说说图片地址")
    protected String talkImageUrl;
}
